/**
 * Copyright (C) 2015-2018 IQIYI
 * All rights reserved.
 *
 * Author     : 王海斌
 * E-mail     : wanghaibin@qiyi.com
 * Version    :
 * Date       : Tue 07 Jul 2020 10:43:31 AM CST
 * Destription: 测试atoi 的越界问题
 */

#include <stdlib.h>
#include <stdio.h>
#include <string>

int main(int argc, char *argv[])
{
    std::string maxLen("4626720307");
    //std::string maxLen("426720307");
    printf("aoti(%s)=%lld, atoll(%s)=%lld\n", maxLen.c_str(),atoi(maxLen.c_str()), maxLen.c_str(),
            atoll(maxLen.c_str()));
    return 0;
}
